import request from '@/utils/request'

// 封装权限列表
export const getPermissionListAPI = () => {
  return request({ url: '/sys/permission' })
}
// 封装添加权限点API
export const addJurisdictionAPI = (data) => {
  return request({
    method: 'post',
    url: '/sys/permission',
    data
  })
}
// 封装获取权限点详情API
export const getJurisdictionParticularsAPI = (id) => {
  return request({
    url: `/sys/permission/${id}`
  })
}
// 封装编辑权限点API
export const editJurisdictionAPI = (data) => {
  return request({
    method: 'put',
    url: `/sys/permission/${data.id}`,
    data
  })
}

// 封装删除权限点API
export const delJurisdictionAPI = (id) => {
  return request({
    method: 'delete',
    url: `/sys/permission/${id}`
  })
}

